Repository navigation
WO20: the reverse-mode golden gate — ruby + py replay (#286) - #865
Merged
Merged
Conversation
The rs reverse golden (interscript-rs tests/golden/isc-reverse.jsonl, 10,024 rows over 313 maps, captured once by iscrs capture --reverse) replays byte-identically here: - tools/isc_wf1_golden_gate.rb gains --reverse: parse, Document#reverse, Interpreter.call(rdoc) on each row's src — the capture procedure mirrored. The rs reverse fixtures (tests/reverse_maps, siblings of the golden) join the load path after the corpus, so a corpus map shadows a same-named fixture like the capture's locate. Errors map to null, the canonical capture marker; no adopting-set exemption (captured once, replayed identically, no adoption flow). - interscript-py/tests/test_golden_reverse.py mirrors the py forward gate with reverse_map + execute_stage on the same rows. Verified locally: ruby 10,024/10,024 delta 0; py green. The forward golden path is untouched (13,745 rows, delta 0 re-verified). Maps the ports still diverge on live in the rs manifest (tests/golden/reverse-divergent-maps.txt) — shrink-to-zero follow-up.
Aligns the ruby gate with the rs/ts/py skip convention: a missing golden capture means a missing sibling checkout, not a failure — the WO20 reverse golden lands on rs main with its branch, and until merge this gate must stay a no-op in CI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WO20 (#286, interscript/maps): the reverse-mode golden gate — the ruby + py replay side. The rs capture (interscript-rs#32) records
tests/golden/isc-reverse.jsonl(10,024 rows over 313 maps) once; this branch replays it byte-identically in ruby and py.tools/isc_wf1_golden_gate.rbgains--reverse: parse (the DSL cache makes re-parses free),Document#reverse,Interscript::Interpreter.call(rdoc)on each row's src — the capture procedure mirrored. The rs reverse fixtures (tests/reverse_maps, siblings of the golden file) join the load path AFTER the corpus, so a corpus map shadows a same-named fixture exactly like the capture'slocate. The reverse gate has no adopting-set exemption (captured once, replayed identically — no adoption flow) and always gates against the golden out fields. Errors map tonull, the canonical capture marker; forward mode keeps itsERROR:Class:msgself-comparison marker.interscript-py/tests/test_golden_reverse.py: the py mirror oftest_golden_capture.py— build the corpus (libs, maps) plus the rs fixtures first-wins,reverse_map+execute_stageon the reversed main stage, errors tonull.Verification
bundle exec ruby -Ilib tools/isc_wf1_golden_gate.rb --reverse --golden .../isc-reverse.jsonl --maps-root ...).test_golden_reverse.pygreen against the same golden (GOLDEN_ROOT sibling layout).--parity).tests/golden/reverse-divergent-maps.txt— shrink-to-zero as the engines converge.Companion branches: wo20-reverse-gate-rs (capture + golden), wo20-reverse-gate-ts (ts replay), wo20-reverse-gate-ci (maps workflow wiring).